﻿using System;

namespace Program03
{
    class Program
    {
        static void Main(string[] args)
        {
            int x = 8;
            {
                int y = 80;
                Console.WriteLine("x=" + x);
                Console.WriteLine("y=" + y);
                //y的作用域只能在｛｝以内
            }
            Console.WriteLine("x=" + x);
            //Console.WriteLine("y=" + y);  //报错？
        }
    }
}
